package com.milk.service.user;

import java.util.List;
import java.util.Map;

import com.milk.model.entity.user.User;

/**
 * user service
 * 2017-09-14 16:57:13  徐政涛
 */ 
public interface UserService {

    public static String RESULT_NULL = "userService方法参数空异常";
    /**
     *创建User信息
     */
    public User save(User user);
    /**
     *修改User信息
     */
    public User update(User user) throws Exception;
    /**
     *根据Id获取User信息
     */
    public User getUserById(long userId);
    /**
     *根据Id删除User信息(注意：物理删除)
     */
    public void deleteUserById(long userId);
    /**
     *根据map获取User信息
     */
    public User getUserByMap(Map<String, Object> params);
    /**
     *根据map删除User信息(注意：物理删除)
     */
    public void deleteUserByMap(Map<String, Object> params);
    /**
     *根据params查询User的实体集合
     */
    public List<User> queryUser(Map<String, Object> params);
	
}